package com.xhwl.centiotdata.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xhwl.common.pojo.cent.iot.CampusUserStatistics;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


/**
 * @Author: JCccc
 * @Description:
 * @Date: 2021/04/27 10:12
 */
@Mapper
public interface ICampusUserStatisticsDao extends BaseMapper<CampusUserStatistics> {

    CampusUserStatistics getStatistics(@Param("campusUserStatistics") CampusUserStatistics campusUserStatistics);

    void deleteTimeByBetweenTime(@Param("startTime") String startTime,@Param("endTime") String endTime);

    Map<String,Object> findShop(@Param("code")String code);

    void insertSaleRecord(@Param("list")List<Map<String, Object>> list);

    Map<String,Object> findShopNameByRelation(@Param("name")String name);

}
